package com.wxf.service.impl;

import com.wxf.bean.Student;
import com.wxf.dao.StudentDao;
import com.wxf.dao.impl.StudentDaoImpl;
import com.wxf.service.StudentService;

import java.util.List;

public class StudentServiceImpl implements StudentService {

    StudentDao studentDao = new StudentDaoImpl();
    @Override
    public List<Student> getStudentList(String stuName, String stuNo, int sex, int pageIndex,int pageNum) {
        return studentDao.getStudentList(stuName, stuNo, sex,pageIndex,pageNum);
    }

    @Override
    public int getTotalDataNumber(String stuName, String stuNo, int sex) {
        return studentDao.getTotalDataNumber(stuName,stuNo,sex);
    }

    @Override
    public int addStudentInfo(Student student) {
        return studentDao.addStudentInfo(student);
    }

    @Override
    public Student displayBeforeModifyStudentInfo(String stuNo){
        return studentDao.displayBeforeModifyStudentInfo(stuNo);
    }
    @Override
    public int modifyStudentInfo(Student student){
        return studentDao.modifyStudentInfo(student);
    }

    @Override
    public int deleteStudentInfo(int stuId) {
        return studentDao.deleteStudentInfo(stuId);
    }
}
